package com.ruoyi.project.wenyanwen.generate.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.Date;

/**
 * 数据包生成对象 db_generate
 *
 * @author shixiangwen
 * @date 2020-09-27
 */
public class DbGenerate extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * 数据库
     */
    @Excel(name = "数据库")
    private String dbName;

    /**
     * 描述
     */
    @Excel(name = "描述")
    private String desc;

    /**
     * 状态
     */
    @Excel(name = "状态")
    private Integer status;

    /**
     * 进程
     */
    @Excel(name = "进程")
    private Long progress;

    /**
     * 命令
     */
    @Excel(name = "命令")
    private String command;

    /**
     * 用时
     */
    @Excel(name = "用时")
    private Long lastUseTime;

    /**
     * 生成用户
     */
    @Excel(name = "生成用户")
    private String commandUser;

    /**
     * 生成时间
     */
    @Excel(name = "生成时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastTime;

    /**
     * 包地址
     */
    @Excel(name = "包地址")
    private String lastPackage;

    /**
     * 生成结果
     */
    @Excel(name = "生成结果")
    private Integer lastResult;

    private String app;
    private String resName;
    private int version;
    private int supportVersion;

    /**
     * 异常
     */
    @Excel(name = "异常")
    private String errorLog;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setDbName(String dbName) {
        this.dbName = dbName;
    }

    public String getDbName() {
        return dbName;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getDesc() {
        return desc;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getStatus() {
        return status;
    }

    public void setProgress(Long progress) {
        this.progress = progress;
    }

    public Long getProgress() {
        return progress;
    }

    public void setCommand(String command) {
        this.command = command;
    }

    public String getCommand() {
        return command;
    }

    public void setLastUseTime(Long lastUseTime) {
        this.lastUseTime = lastUseTime;
    }

    public Long getLastUseTime() {
        return lastUseTime;
    }

    public void setCommandUser(String commandUser) {
        this.commandUser = commandUser;
    }

    public String getCommandUser() {
        return commandUser;
    }

    public void setLastTime(Date lastTime) {
        this.lastTime = lastTime;
    }

    public Date getLastTime() {
        return lastTime;
    }

    public void setLastPackage(String lastPackage) {
        this.lastPackage = lastPackage;
    }

    public String getLastPackage() {
        return lastPackage;
    }

    public void setLastResult(Integer lastResult) {
        this.lastResult = lastResult;
    }

    public Integer getLastResult() {
        return lastResult;
    }

    public void setErrorLog(String errorLog) {
        this.errorLog = errorLog;
    }

    public String getErrorLog() {
        return errorLog;
    }

    public String getApp() {
        return app;
    }

    public void setApp(String app) {
        this.app = app;
    }

    public String getResName() {
        return resName;
    }

    public void setResName(String resName) {
        this.resName = resName;
    }

    public int getVersion() {
        return version;
    }

    public void setVersion(int version) {
        this.version = version;
    }

    public int getSupportVersion() {
        return supportVersion;
    }

    public void setSupportVersion(int supportVersion) {
        this.supportVersion = supportVersion;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("dbName", getDbName())
                .append("desc", getDesc())
                .append("status", getStatus())
                .append("progress", getProgress())
                .append("command", getCommand())
                .append("lastUseTime", getLastUseTime())
                .append("commandUser", getCommandUser())
                .append("lastTime", getLastTime())
                .append("lastPackage", getLastPackage())
                .append("lastResult", getLastResult())
                .append("errorLog", getErrorLog())
                .toString();
    }
}
